﻿using 依赖注入案例练习;

namespace Microsoft.Extensions.DependencyInjection;

public static class IniFileConfigExtensions
{
    public static void AddIniFileConfig(this IServiceCollection serviceCollection,string filePath)
    {
        serviceCollection.AddScoped(typeof(IConfig), s => new IniFileConfig() { FilePath = filePath });
    }
}